# 医生端隐形正畸
import random
import time

from page import CreatePageHome


class CreateHandle(CreatePageHome):
    # 订单列表
    def click_order_list(self):
        self.get_order_list_ele().click()

    # 创建订单
    def click_create_order(self):
        self.get_create_order_ele().click()

    # 创建患者信息
    def send_name(self, name):
        self.get_create_name_ele().send_keys(name)
        time.sleep(2)

    def click_nei(self):
        self.get_create_nei().click()

    def click_sex(self):
        self.get_create_sex_ele().click()

    def send_year(self):
        self.get_create_year_ele().click()
        self.get_create_year_ele2().click()

    def send_month(self):
        self.get_create_month_ele().click()
        self.get_create_month_ele2().click()

    def send_day(self):
        self.get_create_day_ele().click()
        self.get_create_day_ele2().click()
        time.sleep(1)
